* March 16, 2025

set matsize 150 
set more off

use "D:\10022024\research, journal papers\suicide terrorism and hard targets\replication materials\data\Appendix Tables 6 and 7 and Appendix Figure 2\CPOST.dta", clear



* some year dummies omitted due to collinearity



***** Appendix 6 *****

* Model 3
logit security       female0_1 /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ /// 
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
* Model 4
logit security       female0_1 religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
	                   /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
				       yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
* Model 5
logit security       female0_1 religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
	                   /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
				       yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
* Model 6
logit security       female0_1 religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)



***** Appendix 7: Interaction *****

logit security       female0_1##c.v2x_gencs  /*religious_conflict Muslim_organization foreign_organization   f_occupation iraqsyria*/ /// 
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit security       female0_1##c.v2x_gencs  religious_conflict /*Muslim_organization foreign_organization   f_occupation iraqsyria*/ ///
	                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
				       yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit security       female0_1##c.v2x_gencs  religious_conflict Muslim_organization foreign_organization /*  f_occupation iraqsyria*/ ///
	                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
				       yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
logit security       female0_1##c.v2x_gencs  religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria gdppc501 ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
	
		
	
***** Appendix Figure 2 *****

label variable v2x_gencs 
label variable v2x_gencs "Gender Equality"

logit security       female0_1##c.v2x_gencs  religious_conflict Muslim_organization foreign_organization /* */ f_occupation iraqsyria gdppc501 ///
                       /*yr1 yr2 yr3 yr4 yr5*/ yr6 /*yr7*/ yr8 /*yr9 yr10*/ ///
					   /*yr11 yr12 yr13 yr14*/ yr15 yr16 yr17 /*yr18*/ yr19 yr20 ///
					   yr21 yr22 yr23 yr24 yr25 yr26 yr27 yr28 yr29 yr30 ///
					   yr31 yr32 yr33 yr34 yr35 yr36 /*yr37*/, vce(cluster ccode)
est store mod4
margins,  dydx(female0_1) at((asobserved)  v2x_gencs  =(.206 (.01) .937))  level(95) 
marginsplot,  ytitle(Predicted Probability of attacking Security Targets) 
estimates clear
					   














					   
					   
					   
					   
					   






